package FastJson_douban;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;

public class FileTest {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new FileReader("D:\\MP\\豆瓣\\douban.json"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("D:\\MP\\豆瓣\\data.json"));
        String line;
        String str;
        while ((line=br.readLine())!=null){
            str = line.replace("][",",");
            bw.write(str);
            bw.flush();
        }
        br.close();
        bw.close();
    }
}
